import { eventHandler, getRouterParam } from 'h3';

export default eventHandler(async (event) => {
  const id = getRouterParam(event, 'id');

  MOCK_CORPUS_LIST_DATA.filter((item) => item.id !== Number(id));

  return useResponseSuccess({
    res: true,
    message: '删除语料成功',
    id,
  });
});
